package com.xinzhi.service.impl;

import com.xinzhi.dao.PointMapper;
import com.xinzhi.entity.Point;
import com.xinzhi.entity.Result;
import com.xinzhi.service.IPointInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Service
public class PointInfoServiceImpl implements IPointInfoService {
    @Autowired
    PointMapper pointMapper;

    @Override
    public Result getPoint() {
        List<Point> point = pointMapper.getPoint();
        if (point.size() > 0){
            return Result.ok(point);
        }
        return Result.error(5006,"没找到自提点");
    }
}
